/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						script_increase_cur_movement.cpp

	$Header: /heroes4/script_increase_cur_movement.cpp $

	$NoKeywords: $

 ************************************************************************/

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#include "precompiled.h"
#pragma warning( disable: 4786 )

#include "script_increase_cur_movement.h"

#include "basic_dialog.h"
#include "creature_array.h"

static bool g_increased_movement;

void t_script_increase_cur_movement::add_icons(t_basic_dialog* dialog) const
{
	if (g_increased_movement)
		dialog->add_movement(get_adjustment());
}

void t_script_increase_cur_movement::do_action(t_creature_array* array) const
{
	if (g_increased_movement = (array != NULL)) 
		array->change_movement( get_adjustment() );
}
